-- GENERATED SPELL FOR [Dragonflayer Rune-Seer] --


function spell0_23656(pUnit, Event) --@Rune of Asvior,n/a--
pUnit:FullCastSpellOnTarget(48262,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23656', 7000, 1)
end

function spell1_23656(pUnit, Event) --@Rune of Ubbi,Heal--
pUnit:FullCastSpellOnTarget(48264,pUnit)
pUnit:RegisterEvent('Sorts_23656', 7000, 1)
end

function Sorts_23656(pUnit, Event)
local choix_sorts_23656 = math.random(0, 1)
if choix_sorts_23656 == 0 then
pUnit:RegisterEvent('spell0_23656', 1, 1)
end
if choix_sorts_23656 == 1 then
pUnit:RegisterEvent('spell1_23656', 1, 1)
end
end

function mob23656_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23656', math.random(1500, 3000), 1)
end

function mob23656_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23656_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23656_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23656, 1, 'mob23656_Action')
RegisterUnitEvent(23656, 2, 'mob23656_Leave')
RegisterUnitEvent(23656, 3, 'mob23656_Kill')
RegisterUnitEvent(23656, 4, 'mob23656_Die')
